<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<html>
<head>
<link href="common/common.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="<%=basePath%>ofc2/swfobject.js"></script>
<script type="text/javascript" src="<%=basePath%>ofc2/simple-make-chart.js"></script>
</head>
<body>
<table width="100%">
	<tr>
		<td>
		<h2>饼形图</h2>
		</td>
	</tr>
	<tr>
		<td>
		<div id="ofc2_bar01"></div>
		</td>
	</tr>
</table>

</body>
<script type="text/javascript">
	function makeFlash(id,heigth,width,url){
		swfobject.embedSWF(
			"<%=basePath%>ofc2/open-flash-chart.swf", 
			id, 
			heigth, 
			width, 
			"9.0.0",
			"expressInstall.swf",
			{"data-file":url},
			{wmode:"transparent"}
		);
	}
	makeFlash("ofc2_bar01","600","400","toAjaxPie.action")
//	makeFlash("ofc2_bar01","600","400","<%=basePath%>/json/pieJSON.json")
	function makeAlert(pie){
		alert(pie.length)
		alert(pie.value)
	}
</script>
</html>